<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Import Namespace="Microsoft.SharePoint.Administration" %>
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages.Administration, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.SolutionStatusPage" MasterPageFile="~/_admin/admin.master"      %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="AdminControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint.ApplicationPages.Administration" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<asp:content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solutionStatus_PageTitle%>" EncodeMethod='HtmlEncode'/>
</asp:content>
<asp:content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solutionStatus_PageTitle%>" EncodeMethod='HtmlEncode'/>
</asp:content>
<asp:content ID="Content3" contentplaceholderid="PlaceHolderMain" runat="server">

<table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="ms-descriptionText"> <asp:Label ID="LabelMessage" Runat="server" EnableViewState="False" class="ms-descriptionText"/> </td> </tr> <tr> <td class="ms-error"><asp:Label ID="LabelErrorMessage" Runat="server" EnableViewState="False" /></td> </tr> <tr> <td class="ms-descriptionText"> <asp:ValidationSummary ID="ValSummary" HeaderText="<%$SPHtmlEncodedResources:spadmin, ValidationSummaryHeaderText%>" DisplayMode="BulletList" ShowSummary="True" runat="server"> </asp:ValidationSummary> </td> </tr> <tr> <td><img src="/_layouts/images/blank.gif" width="10" height="1" alt="" /></td> </tr> </table>
 <!-- Toolbar -->
 <p>
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
   <td>
	<wssuc:ToolBar id="solutionStatusToolBar" runat="server">
	 <Template_Buttons>
	  <wssuc:ToolBarButton runat="server"
		  id=LinkDeploySolution
		  Text="<%$Resources:spadmin, solution_DeploySolutionTitle%>"
		  ToolTip="<%$Resources:spadmin, solution_DeploySolutionTitle%>"
		  NavigateUrl="/_admin/DeploySolution.aspx"
		  AccessKey="<%$Resources:spadmin, solution_DeploySolutionAccessKey%>" />
	  <wssuc:ToolBarButton runat="server"
		  id=LinkRetractSolution
		  Text="<%$Resources:spadmin, solution_RetractSolutionTitle%>"
		  ToolTip="<%$Resources:spadmin, solution_RetractSolutionTitle%>"
		  NavigateUrl="/_admin/RetractSolution.aspx"
		  AccessKey="<%$Resources:spadmin, solution_RetractSolutionAccessKey%>" />
	  <wssuc:ToolBarButton runat="server"
		  id=LinkRemoveSolution
		  Text="<%$Resources:spadmin, solution_RemoveSolutionTitle%>"
		  ToolTip="<%$Resources:spadmin, solution_RemoveSolutionTitle%>"
		  NavigateUrl="/_admin/ttsm/solutions.aspx"
		  OnClick="RemoveSolution"
		  AccessKey="<%$Resources:spadmin, solution_RemoveSolutionAccessKey%>" />
	  <wssuc:ToolBarButton runat="server"
		  id=LinkCancelDeployment
		  Text="<%$Resources:spadmin, solution_CancelDeploymentTitle%>"
		  ToolTip="<%$Resources:spadmin, solution_CancelDeploymentTitle%>"
		  NavigateUrl="/_admin/ttsm/solutions.aspx"
		  OnClick="CancelDeployment"
		  AccessKey="<%$Resources:spadmin, solution_CancelDeploymentAccessKey%>" />
	  <wssuc:ToolBarButton runat="server"
		  id=LinkBackSolutions
		  Text="<%$Resources:spadmin, solution_BackSolutionsTitle%>"
		  ToolTip="<%$Resources:spadmin, solution_BackSolutionsTitle%>"
		  NavigateUrl="/_admin/ttsm/Solutions.aspx"
		  AccessKey="<%$Resources:spadmin, solution_BackSolutionsAccessKey%>" />
	  <wssuc:ToolBarButton runat="server"
		  id=LinkUploadSolution
		  Text="Upload solution"
		  ToolTip="Upload a new solution"
		  NavigateUrl="/_admin/ttsm/AddSolution.aspx"
		  AccessKey="A" />
	 </Template_Buttons>
	</wssuc:ToolBar>
   </td>
  </tr>
 </table>
 </p>
  <TABLE border="0" cellspacing="4" cellpadding="0" width="100%">
  <TR> <TD height=1 colspan = 5></TD></TR>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_Name%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(CurrentSolution.Name,Response.Output); %></TD>
  </TR>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_Type%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><% SPHttpUtility.HtmlEncode(SolutionType,Response.Output); %></TD>
  </TR>
<%
if (!CurrentLangPack.IsWebPartPackage)
{
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_WebAppResource%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(ContainsWebApplicationResource,Response.Output);%></TD>
  </TR>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_GlobalAssembly%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(ContainsGlobalAssembly,Response.Output);%></TD>
  </TR>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_CasPolicy%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(ContainsCasPolicy,Response.Output);%></TD>
  </TR>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_DeploymentServerType%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(DeploymentServerType,Response.Output);%></TD>
  </TR>
<%
}
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_DeploymentStatus%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.NoEncode(DeploymentStatus,Response.Output); %></TD>
  </TR>
<%
if (CurrentLangPack.IsWebPartPackage)
{
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_GACDeployment%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(GACDeployment,Response.Output);%></TD>
  </TR>
<%
}
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_DeploymentLocations%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(DeploymentLocations,Response.Output);%></TD>
  </TR>
<% string opResult, opDetails, opTime;
GetLastOperationDetails(out opResult, out opDetails, out opTime);
if (opResult.Length > 0)
{
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_OperationResult%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(opResult,Response.Output);%></TD>
  </TR>
<%
}
if (opDetails.Length > 0)
{
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_OperationDetails%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncodeAllowSimpleTextFormatting(opDetails,Response.Output);%></TD>
  </TR>
<%
}
if (opTime.Length > 0)
{
%>
  <TR>
	<TD class=ms-propertysheet valign=top height="7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_OperationTime%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4"><%SPHttpUtility.HtmlEncode(opTime,Response.Output);%></TD>
  </TR>
<%
}
%>
<%
if (CurrentSolution.LanguagePacks.Count > 1)
{
%>
  <TR>
	<TD class=ms-propertysheet valign=top height = "7" width="250"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, solution_LangPacks%>" EncodeMethod='HtmlEncode'/></TD>
	<TD class=ms-propertysheet valign=top colspan="4">
<%
	  int i = 0;
	  if (CurrentLangPack.LocaleId != 0 &&
		  CurrentSolution.LanguagePacks["0"] != null)
	  {
%>
		<A href='<%=SPHttpUtility.HtmlUrlAttributeEncode(LinkToLanguagePack(CurrentSolution.LanguagePacks["0"]))%>'><SharePoint:EncodedLiteral runat="server" text="<%$Resources:spadmin, SolutionCoreSolution%>" EncodeMethod='HtmlEncode'/></A>
<%
		i++;
	  }
	  foreach (SPSolutionLanguagePack lp in CurrentSolution.LanguagePacks)
	  {
		if (CurrentLangPack.LocaleId == lp.LocaleId ||
			lp.LocaleId == 0)
		{
		  continue;
		}
		if (i != 0)
		{ %><BR><%}%>
		  <A href='<%=SPHttpUtility.HtmlUrlAttributeEncode(LinkToLanguagePack(lp))%>'><%SPHttpUtility.HtmlEncode(lp.Parent.Name+"(" + lp.LocaleId.ToString(System.Globalization.NumberFormatInfo.InvariantInfo)+")",Response.Output);%></A>
<%
		i++;
	  }
%>
  </TD>
  </TR>
<%
}
%>
  </TABLE>
</asp:content>
